//
//  CS_Page_SectionTitleView.h
//  Pods
//
//  Created by 网新中研 on 17/3/1.
//
//

#import <CSUIKit/CSUIKit.h>

typedef void(^RightSectionButtonClickHandler)(void);

typedef enum : NSUInteger {
    SectionTitleType_Basic = 2,
    SectionTitleType_Edit
} SectionTitleType;


@interface CS_Page_SectionTitleView : CSBaseView

@property (nonatomic, strong) NSString *title;

@property (nonatomic, strong) UIColor *color;

@property (nonatomic, strong) UILabel *label;

@property (nonatomic, strong) UIImage *image;

@property (nonatomic, strong) UIFont *font;

@property (nonatomic, assign) BOOL isTopSeperatorLineHide;

+(instancetype)page_SectionTitleView:(NSString *)title color:(UIColor *)color image:(UIImage *)image;

+(instancetype)page_SectionTitleView:(NSString *)title color:(UIColor *)color sectionTitleType:(SectionTitleType)sectionTitleType;

+(id)page_SectionTitleView:(NSString *)title color:(UIColor *)color image:(UIImage *)image rightButtonName:(NSString *)buttonName rightClickHandler:(RightSectionButtonClickHandler)rightClickHandler;

+(id)page_SectionTitleView:(NSString *)title Font:(UIFont *)font color:(UIColor *)color image:(UIImage *)image rightButtonName:(NSString *)buttonName rightClickHandler:(RightSectionButtonClickHandler)rightClickHandler;

@property (nonatomic, strong) NSMutableArray *sectionItems;

/**
 * 添加标题图标类型
 */
+(void)addImageIcon:(SectionTitleType)sectionTitleType iconImage:(UIImage *)iconImage;

-(void)refreshTextColor:(UIColor *)textColor;

@end
